Description | : > [!NOTE] > > **Azure Maps Creator retirement** > > The Azure Maps Creator indoor map service is now deprecated and will be retired on 9/30/25. For more information, see [End of Life Announcement of Azure Maps Creator](https://aka.ms/AzureMapsCreatorDeprecation). The `Create Stateset` API is an HTTP `POST` request used to create a new stateset, defining the values and corresponding styles for its properties in the body of the request. For more information, see [Create a feature stateset](/azure/azure-maps/how-to-creator-feature-stateset). The Feature State service allows the user to update the states of a feature and query them to be used in other services. The dynamic properties of a feature that don't belong to the dataset are referred to as *states* here. This Feature State service pivot on the stateset. Like tileset, stateset encapsulates the storage mechanism for feature states for a dataset. Once the stateset is created, users can use that `statesetId` to post feature state updates and retrieve the current feature states. A feature can have only one state at a given point in time. Feature state is defined by the key name, value and the timestamp. When a feature state update is posted to Azure Maps, the state value gets updated only if the provided state’s timestamp is later than the stored timestamp. Azure Maps MapControl provides a way to use these feature states to style the features. For more information, see the Render services [Get Map State Tile](/rest/api/maps/render/get-map-state-tile). |
Reference | : Link ¶ |
⚼ Request
POST:
/featureStateSets
{
x-ms-client-id:
string
,
api-version:
string
,
datasetId:
string
,
description:
string
,
styleRules:
}
{
,
styles:
}
[
]
,
{
,
keyName:
string
,
type:
enum
,
}
⚐ Response (200)
{
statesetId:
string
,
}
⚐ Response (default)
{
error:
}
{
,
code:
string
,
message:
string
,
target:
string
,
details:
[
,
string
,
]
additionalInfo:
}
[
]
,
{
,
type:
string
,
info:
object
,
}